<div class="pageedit">
	<form action="<?php echo url('page/edit');?>" method="post" id="editForm">
		<table>
			<tr>
				<td width="80" class="inputtxt" align="right"><span>页面标题</span></td>
				<td align="left">
					<input type="text" class="required" name="page[title]" value="<?php echo $page['title']?>" />
					<span style="color:red;">*</span>
				</td>
			</tr>
			<tr>
				<td class="inputtxt" align="right"><span>页面简介</span></td>
				<td align="left">
					<textarea name="page[description]" cols="100" rows="4"><?php echo $page['description'];?></textarea>
				</td>
			</tr>
			<tr>
				<td class="inputtxt" align="right"><span>页面内容</span></td>
				<td align="left">
					<textarea id="ckeditor" name="page[content]"><?php echo $page['content'];?></textarea>
				</td>
			</tr>
			<tr><td colspan="2" align="right"><input type="submit" onClick="CKupdate();" value="修改" id="catesub" /></td></tr>
		</table>
        <input type="hidden" name="id" value="<?php echo $page['id'];?>" />
	</form>
</div>
<script type="text/javascript">
$(document).ready(function(){
	CKEDITOR.replace('ckeditor',{
		filebrowserImageUploadUrl:"/admin.php/image/ckUpload.html",
	});
	submitForm("#editForm",{
		dataType:'json',
		success:function(data){
				if(data.i=='ok'){
					location.href="<?php echo url('page/index');?>";
				}else{
					alert(data.i);
				}
			},
	});
});
</script>
